<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head profile="http://selenium-ide.openqa.org/profiles/test-case">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="selenium.base" href="" />
<title>Test_PRL_02_03_005_CheckEditingPassWordInCommunityManagement</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">Test_PRL_02_03_005_CheckEditingPassWordInCommunityManagement</td></tr>
</thead><tbody>
<tr>
	<td>open</td>
	<td>/portal/public/classic/</td>
	<td></td>
</tr>
<tr>
	<td>echo</td>
	<td>-- Check Editing Password in Community Management--</td>
	<td></td>
</tr>
<tr>
	<td>windowMaximize</td>
	<td></td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>link=Sign in</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>username</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>username</td>
	<td>root</td>
</tr>
<tr>
	<td>type</td>
	<td>password</td>
	<td>gtn</td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>//div[@id='UIPortalLoginFormAction']/div/div/div/a</td>
	<td></td>
</tr>
<tr>
	<td>echo</td>
	<td>-- Go to New Staff--</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>link=New Staff</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=New Staff</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>username</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>username</td>
	<td>Test_PRL_02_03_005</td>
</tr>
<tr>
	<td>type</td>
	<td>password</td>
	<td>Test_PRL_02_03_005</td>
</tr>
<tr>
	<td>type</td>
	<td>Confirmpassword</td>
	<td>Test_PRL_02_03_005</td>
</tr>
<tr>
	<td>type</td>
	<td>firstName</td>
	<td>Test_PRL_02_03_005</td>
</tr>
<tr>
	<td>type</td>
	<td>lastName</td>
	<td>Test_PRL_02_03_005</td>
</tr>
<tr>
	<td>type</td>
	<td>email</td>
	<td>Test_PRL_02_03_005@gmail.com</td>
</tr>
<tr>
	<td>echo</td>
	<td>-- Choose User Profile --</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>//div[@id='UIAccountPortlet']/div[1]/div/div/div/div/div/div/div/div/div[2]/div/div/div/div</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>//div[@id='UIAccountPortlet']/div[1]/div/div/div/div/div/div/div/div/div[2]/div/div/div/div</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>user.language</td>
	<td></td>
</tr>
<tr>
	<td>select</td>
	<td>user.language</td>
	<td>label=Dutch</td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>link=Save</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>link=Save</td>
	<td></td>
</tr>
<tr>
	<td>waitForTextPresent</td>
	<td>You have registered a new account.</td>
	<td></td>
</tr>
<tr>
	<td>verifyTextPresent</td>
	<td>You have registered a new account.</td>
	<td></td>
</tr>
<tr>
	<td>echo</td>
	<td>-- Close message--</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>//div[3]/div/div[2]/div/div/div/div/div/div[3]/div/table/tbody/tr/td/div/div/div/div</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>//div[3]/div/div[2]/div/div/div/div/div/div[3]/div/table/tbody/tr/td/div/div/div/div</td>
	<td></td>
</tr>
<tr>
	<td>echo</td>
	<td>-- Go to User and Group Management --</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>link=Users and groups management</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>link=Users and groups management</td>
	<td></td>
</tr>
<tr>
	<td>echo</td>
	<td>-- Search new user in list--</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>searchTerm</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>searchTerm</td>
	<td>Test_PRL_02_03_005</td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>//form[@id='UISearchForm']/div[2]/a</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>//form[@id='UISearchForm']/div[2]/a</td>
	<td></td>
</tr>
<tr>
	<td>echo</td>
	<td>-- Eidt this user--</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>//img[@alt='ViewUserInfo']</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>//img[@alt='ViewUserInfo']</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>changePassword</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>changePassword</td>
	<td></td>
</tr>
<tr>
	<td>echo</td>
	<td>-- Edit with blank New Password--</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>confirmPassword</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>confirmPassword</td>
	<td>Test_PRL_02_03_005</td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>link=Save</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>link=Save</td>
	<td></td>
</tr>
<tr>
	<td>waitForTextPresent</td>
	<td>The field &quot;New Password:&quot; is required.</td>
	<td></td>
</tr>
<tr>
	<td>verifyTextPresent</td>
	<td>The field &quot;New Password:&quot; is required.</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>//div[3]/div/div[2]/div/div/div/div/div/div[3]/div/table/tbody/tr/td/div/div/div/div/a</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>//div[3]/div/div[2]/div/div/div/div/div/div[3]/div/table/tbody/tr/td/div/div/div/div/a</td>
	<td></td>
</tr>
<tr>
	<td>echo</td>
	<td>-- Edit with New Password/Confirm Password less than 6 characters--</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>newPassword</td>
	<td>Test</td>
</tr>
<tr>
	<td>type</td>
	<td>confirmPassword</td>
	<td>Test</td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>link=Save</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>link=Save</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>//div[2]/div[2]/div/div/div/div[1]/div[2]</td>
	<td></td>
</tr>
<tr>
	<td>verifyText</td>
	<td>//div[2]/div[2]/div/div/div/div[1]/div[2]</td>
	<td>The length of the text in field &quot;New Password:&quot; must be between &quot;6&quot; and &quot;30&quot; characters.</td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>//div[2]/div/div/div/div[2]/div[2]</td>
	<td></td>
</tr>
<tr>
	<td>verifyText</td>
	<td>//div[2]/div/div/div/div[2]/div[2]</td>
	<td>The length of the text in field &quot;Confirm Password: &quot; must be between &quot;6&quot; and &quot;30&quot; characters.</td>
</tr>
<tr>
	<td>echo</td>
	<td>-- Close message--</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>//div[3]/div/div[2]/div/div/div/div/div/div[3]/div/table/tbody/tr/td/div/div/div/div/a</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>//div[3]/div/div[2]/div/div/div/div/div/div[3]/div/table/tbody/tr/td/div/div/div/div/a</td>
	<td></td>
</tr>
<tr>
	<td>echo</td>
	<td>-- Edit with New Password/Confirm Password over 30 characters--</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>newPassword</td>
	<td>Test_PRL_02_03_005Test_PRL_02_03_005Test_PRL_02_03_005</td>
</tr>
<tr>
	<td>type</td>
	<td>confirmPassword</td>
	<td>Test_PRL_02_03_005Test_PRL_02_03_005Test_PRL_02_03_005</td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>link=Save</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>link=Save</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>//div[2]/div[2]/div/div/div/div[1]/div[2]</td>
	<td></td>
</tr>
<tr>
	<td>verifyText</td>
	<td>//div[2]/div[2]/div/div/div/div[1]/div[2]</td>
	<td>The length of the text in field &quot;New Password:&quot; must be between &quot;6&quot; and &quot;30&quot; characters.</td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>//div[2]/div/div/div/div[2]/div[2]</td>
	<td></td>
</tr>
<tr>
	<td>verifyText</td>
	<td>//div[2]/div/div/div/div[2]/div[2]</td>
	<td>The length of the text in field &quot;Confirm Password: &quot; must be between &quot;6&quot; and &quot;30&quot; characters.</td>
</tr>
<tr>
	<td>echo</td>
	<td>-- Close message--</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>//div[3]/div/div[2]/div/div/div/div/div/div[3]/div/table/tbody/tr/td/div/div/div/div</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>//div[3]/div/div[2]/div/div/div/div/div/div[3]/div/table/tbody/tr/td/div/div/div/div</td>
	<td></td>
</tr>
<tr>
	<td>echo</td>
	<td>-- Edit with New Password &amp; Confirm Password are not the same--</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>newPassword</td>
	<td>Test_PRL_02_03_005</td>
</tr>
<tr>
	<td>type</td>
	<td>confirmPassword</td>
	<td>Test_PRL_02_03</td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>link=Save</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>link=Save</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>//div[2]/div[2]/div/div/div/div/div[2]</td>
	<td></td>
</tr>
<tr>
	<td>verifyText</td>
	<td>//div[2]/div[2]/div/div/div/div/div[2]</td>
	<td>Password and Confirm Password must be the same.</td>
</tr>
<tr>
	<td>echo</td>
	<td>-- Close message--</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>//div[3]/div/div[2]/div/div/div/div/div/div[3]/div/table/tbody/tr/td/div/div/div/div</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>//div[3]/div/div[2]/div/div/div/div/div/div[3]/div/table/tbody/tr/td/div/div/div/div</td>
	<td></td>
</tr>
<tr>
	<td>echo</td>
	<td>-- Edit when copy from New Password and paste to Confirm Password field--</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>newPassword</td>
	<td>Test_PRL_02_03_005</td>
</tr>
<tr>
	<td>type</td>
	<td>confirmPassword</td>
	<td>●●●●●●●●●●●●●●●●●●</td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>link=Save</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>link=Save</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>//div[2]/div[2]/div/div/div/div/div[2]</td>
	<td></td>
</tr>
<tr>
	<td>verifyText</td>
	<td>//div[2]/div[2]/div/div/div/div/div[2]</td>
	<td>Password and Confirm Password must be the same.</td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>//div[3]/div/div[2]/div/div/div/div/div/div[3]/div/table/tbody/tr/td/div/div/div/div</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>//div[3]/div/div[2]/div/div/div/div/div/div[3]/div/table/tbody/tr/td/div/div/div/div</td>
	<td></td>
</tr>
<tr>
	<td>echo</td>
	<td>-- Edit with blank Confirm New Password--</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>newPassword</td>
	<td>Test_PRL_02_03_005</td>
</tr>
<tr>
	<td>type</td>
	<td>confirmPassword</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>link=Save</td>
	<td></td>
</tr>
<tr>
	<td>echo</td>
	<td>-- https://jira.jboss.org/browse/GTNPORTAL-1341--</td>
	<td></td>
</tr>
<tr>
	<td>waitForTextPresent</td>
	<td>Password and Confirm Password must be the same.</td>
	<td></td>
</tr>
<tr>
	<td>verifyTextPresent</td>
	<td>Password and Confirm Password must be the same.</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>//div[3]/div/div[2]/div/div/div/div/div/div[3]/div/table/tbody/tr/td/div/div/div/div</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>//div[3]/div/div[2]/div/div/div/div/div/div[3]/div/table/tbody/tr/td/div/div/div/div</td>
	<td></td>
</tr>
<tr>
	<td>echo</td>
	<td>-- Edit password with valid values--</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>newPassword</td>
	<td>Test_PRL_02_03_005</td>
</tr>
<tr>
	<td>type</td>
	<td>confirmPassword</td>
	<td>Test_PRL_02_03_005</td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>link=Save</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>link=Save</td>
	<td></td>
</tr>
<tr>
	<td>waitForTextPresent</td>
	<td>The user profile has been updated.</td>
	<td></td>
</tr>
<tr>
	<td>verifyTextPresent</td>
	<td>The user profile has been updated.</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>//div[3]/div/div[2]/div/div/div/div/div/div[3]/div/table/tbody/tr/td/div/div/div/div/a</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>//div[3]/div/div[2]/div/div/div/div/div/div[3]/div/table/tbody/tr/td/div/div/div/div/a</td>
	<td></td>
</tr>
<tr>
	<td>echo</td>
	<td>-- Search user--</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>//form[@id='UISearchForm']/div[2]/a</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>//form[@id='UISearchForm']/div[2]/a</td>
	<td></td>
</tr>
<tr>
	<td>echo</td>
	<td>-- Delete user--</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>//img[@alt='DeleteUser']</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>//img[@alt='DeleteUser']</td>
	<td></td>
</tr>
<tr>
	<td>waitForConfirmationPresent</td>
	<td></td>
	<td></td>
</tr>
<tr>
	<td>assertConfirmation</td>
	<td>Are you sure you want to delete Test_PRL_02_03_005 user?</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=Sign out</td>
	<td></td>
</tr>

</tbody></table>
</body>
</html>
